/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.ispviolation.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.assignment2.ispviolation.Calculator;
import za.ac.cput.assignment2.ispviolation.impl.CalculatorImpl;

/**
 *
 * @author Siya
 */
@Configurable
public class AppConfig {
    
    @Bean(name = "compute")
    public Calculator compute(){
    
        return new CalculatorImpl();
    }
    @Bean(name = "calc")
    public Calculator calc(){
    
        return new CalculatorImpl();
    }
    
}
